import request from '@/utiles/request.js'


export const  addComment =  async (newComment) => request.post('/comment/add', newComment
);

export const getCommentsByPostId = async (id) => {
  return await request.get(`/comment/get/${id}`)
}

export const getCommentLikes = async (id) => request.get(`/comment/getlikes/${id}`)

export const addCommentLike = async (id) => request.put(`/comment/addlike/${id}`)

export const delCommentLike = async (id) => request.delete(`/comment/dellike/${id}`)
